home *** CD-ROM | disk | FTP | other *** search
/ 17 Bit Software 6: Level 6 / 17 Bit - Level 6 (1998)(Epic Marketing)[!].iso / quartz / q0429.dms / q0429.adf / libray / libobj / torus.h < prev    next >
C/C++ Source or Header  |  1991-08-08  |  1KB  |  46 lines

  1. /*
  2.  * torus.h
  3.  *
  4.  * Copyright (C) 1990, 1991, Mark Polipec, Craig E. Kolb
  5.  * All rights reserved.
  6.  *
  7.  * This software may be freely copied, modified, and redistributed
  8.  * provided that this copyright notice is preserved on all copies.
  9.  *
  10.  * You may not distribute this software, in whole or in part, as part of
  11.  * any commercial product without the express consent of the authors.
  12.  *
  13.  * There is no warranty or other guarantee of fitness of this software
  14.  * for any purpose.  It is provided solely "as is".
  15.  *
  16.  * $Id: torus.h,v 4.0 91/07/17 14:39:31 kolb Exp Locker: kolb $
  17.  *
  18.  * $Log:    torus.h,v $
  19.  * Revision 4.0  91/07/17  14:39:31  kolb
  20.  * Initial version.
  21.  * 
  22.  */
  23. #ifndef TORUS_H
  24. #define TORUS_H
  25.  
  26. #define GeomTorusCreate(a,b,p,n) GeomCreate((GeomRef)TorusCreate(a,b,p,n), \
  27.                     TorusMethods())
  28.  
  29. /*
  30.  * Torus
  31.  */
  32. typedef struct {
  33.     Float a;        /* tube radius */
  34.     Float b;        /* swept radius */
  35.     Float aa, bb;        /* squares of the above */
  36.     Trans trans;        /* general<-->canonical transform */
  37. } Torus;
  38.  
  39. extern Torus    *TorusCreate();
  40. extern int    TorusIntersect(), TorusEnter(), TorusNormal();
  41. extern void    TorusBounds(), TorusUV(), TorusStats();
  42. extern char    *TorusName();
  43. extern Methods    *TorusMethods();
  44.  
  45. #endif /* TORUS_H */
  46.